import { Boot } from '@wangeditor/editor'
import resetButtonMenuConf from '@/components/pro-wang-editor/menus/resetButtonMenu'
import previewButtonMenuConf from '@/components/pro-wang-editor/menus/previewButtonMenu'
import newFullScreenButtonMenuConf from '@/components/pro-wang-editor/menus/newFullScreenButtonMenu'
import downloadFileMenuConf from '@/components/pro-wang-editor/menus/downloadFileMenu'
import PreviewFileMenuConf from '@/components/pro-wang-editor/menus/previewFileMenu'
import attachmentModule from 'pro-wang-plugin-upload-attachment'

const registerWangEditor = () => {
  // 注册文件上传菜单
  Boot.registerModule(attachmentModule)
  // 注册重置功能按钮
  Boot.registerMenu(resetButtonMenuConf)
  // 注册预览按钮
  Boot.registerMenu(previewButtonMenuConf)
  // 注册全屏按钮
  Boot.registerMenu(newFullScreenButtonMenuConf)
  // 注册下载文件按钮
  Boot.registerMenu(downloadFileMenuConf)
  // 注册文件预览按钮
  Boot.registerMenu(PreviewFileMenuConf)
}
registerWangEditor()
